package com.atguigu.day13.teacher.c1;

public class Person {
    String name;
    int age;
    {
        System.out.println("普通成员代码块一");
        name="张三";
        age = 20;
    }
    public Person() {
        System.out.println("Person 无参");
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
    {
        System.out.println("普通成员代码块二....");
    }
    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
